<template>
    <div>
        <van-nav-bar title="JD购物" />
        <van-search v-model="value" shape="round" placeholder="请输入搜索关键词" @click="dj" />
        <van-tabs v-model:active="active">
            <van-tab title="数码">内容1</van-tab>
            <van-tab title="美妆">内容2</van-tab>
            <van-tab title="服装">内容3</van-tab>
            <van-tab title="生鲜">内容4</van-tab>
        </van-tabs>
        <van-swipe :autoplay="3000" lazy-render>
            <van-swipe-item v-for="image in images" :key="image">
                <img :src="image" style="width: 100%; height: 220px;" />
            </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script setup>
import router from '@/router';
// import { ref } from 'vue';

const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
];
const dj=()=>{
    router.push('/sou')
}
</script>

<style lang="scss" scoped></style>